package com.example.demo.dao

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.example.demo.entity.SysUser
import org.apache.ibatis.annotations.Select

public interface SysUserDao : BaseMapper<SysUser> {

    @Select("select t1.*,t2.dept_name from sys_user t1 LEFT JOIN sys_dept t2 ON t1.dept_id =t2.dept_id WHERE t1.user_name= #{name}")
    fun getUser(name: String): SysUser;
}